<?php
include_once '../tools/DbTools.php';

    DbTools::InitDb();
    $sql = "select * from accountinfo";
    $result = DbTools::select($sql);
    //关闭连接
    DbTools::close();

?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="10px">
    <tr>
        <th>用户Id</th>
        <th>身份证号码</th>
        <th>电话号码</th>
        <th>姓名</th>
        <th>注册时间</th>
    </tr>

        <?php
        foreach ($result as $item){
            ?>

            <tr>
                <td><?php echo $item['AccountId'];?></td>
                <td><?php echo $item['AccountCode'];?></td>
                <td><?php echo $item['AccountPhone'];?></td>
                <td><?php echo $item['RealName'];?></td>
                <td><?php echo $item['OpenTime'];?></td>
            </tr>
            <?php
        }
        ?>
</table>
<a href="administrator.php">返回</a>
</body>
</html>